<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
    <xi:include href="../master.html" />
    <head>
        <title>User information</title>
    </head>

    <body class="welcome">
        <h2 align="center">User information</h2>

        <table class="maintable">
        <tbody>
                <tr> <td>Login</td> <td>${tg.identity.user_name}</td> </tr>
                <tr> <td>Display name</td> <td>${tg.identity.user.display_name}</td> </tr>
                <tr> <td>Creation date</td> <td>${tg.identity.user.created}</td> </tr>
                <tr>
                    <td>Groups</td>
                    <td>
                        <span py:for="group in tg.identity.user.groups">
                            <span>${group.display_name}</span> <br />
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>Permissions</td>
                    <td>
                        <span py:for="permission in tg.identity.user.permissions">
                            <span>${permission.permission_name}</span>
                            <span py:if="permission.description">
                                (<span>${permission.description}</span>)
                            </span>

                            <br />
                        </span>
                    </td>
                </tr>
            </tbody>
        </table>

    </body>
</html>
